package com.jianbing.lakk.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.lakk.mapper.LakkUsercoinrecordMapper;
import com.jianbing.lakk.domain.LakkUsercoinrecord;
import com.jianbing.lakk.service.ILakkUsercoinrecordService;

/**
 * 金币记录Service业务层处理
 * 
 * @author windbless
 * @date 2024-06-25
 */
@Service
public class LakkUsercoinrecordServiceImpl implements ILakkUsercoinrecordService 
{
    @Autowired
    private LakkUsercoinrecordMapper lakkUsercoinrecordMapper;

    /**
     * 查询金币记录
     * 
     * @param userid 金币记录主键
     * @return 金币记录
     */
    @Override
    public LakkUsercoinrecord selectLakkUsercoinrecordByUserid(Long userid)
    {
        return lakkUsercoinrecordMapper.selectLakkUsercoinrecordByUserid(userid);
    }

    /**
     * 查询金币记录列表
     * 
     * @param lakkUsercoinrecord 金币记录
     * @return 金币记录
     */
    @Override
    public List<LakkUsercoinrecord> selectLakkUsercoinrecordList(LakkUsercoinrecord lakkUsercoinrecord)
    {
        return lakkUsercoinrecordMapper.selectLakkUsercoinrecordList(lakkUsercoinrecord);
    }

    /**
     * 新增金币记录
     * 
     * @param lakkUsercoinrecord 金币记录
     * @return 结果
     */
    @Override
    public int insertLakkUsercoinrecord(LakkUsercoinrecord lakkUsercoinrecord)
    {
        return lakkUsercoinrecordMapper.insertLakkUsercoinrecord(lakkUsercoinrecord);
    }

    /**
     * 修改金币记录
     * 
     * @param lakkUsercoinrecord 金币记录
     * @return 结果
     */
    @Override
    public int updateLakkUsercoinrecord(LakkUsercoinrecord lakkUsercoinrecord)
    {
        return lakkUsercoinrecordMapper.updateLakkUsercoinrecord(lakkUsercoinrecord);
    }

    /**
     * 批量删除金币记录
     * 
     * @param userids 需要删除的金币记录主键
     * @return 结果
     */
    @Override
    public int deleteLakkUsercoinrecordByUserids(Long[] userids)
    {
        return lakkUsercoinrecordMapper.deleteLakkUsercoinrecordByUserids(userids);
    }

    /**
     * 删除金币记录信息
     * 
     * @param userid 金币记录主键
     * @return 结果
     */
    @Override
    public int deleteLakkUsercoinrecordByUserid(Long userid)
    {
        return lakkUsercoinrecordMapper.deleteLakkUsercoinrecordByUserid(userid);
    }
}
